package com.ruoyi.project.anfang.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 公告管理对象 t_gong_gao
 *
 * @author chendg
 * @date 2025-04-15
 */
@Data
@TableName("t_gong_gao")
public class GongGao implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private String id;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 封面
     */
    @Excel(name = "封面")
    private String face;

    /**
     * 是否外链
     */
    @Excel(name = "是否外链")
    private String isOut;

    /**
     * 作者
     */
    @Excel(name = "作者")
    private String author;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String content;
    /**
     * 链接
     */
    @Excel(name = "链接")
    private String linkUrl;


    @Excel(name = "发布日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate publishDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


    @Excel(name = "状态")
    private String status;

    @Excel(name = "分类")
    private String type;

    private Integer orderNum;
}
